package com.orange.engine.device;

import com.orange.audio.music.IMusicFactory;
import com.orange.audio.music.MusicManager;
import com.orange.audio.sound.ISoundFactory;
import com.orange.audio.sound.ISoundManager;
import com.orange.input.touch.controller.ITouchController;
import com.orange.opengl.IGLES20;
import com.orange.util.IDisplayUtils;
import com.orange.util.file.IFileManage;

public class Device {

	static Device mDevice;
	IGLES20 mGlES20;
	IMusicFactory mMusicFactory;
	ISoundFactory mSoundFactory;
	ISoundManager mSoundManager;
	MusicManager mMusicManager;
	IFileManage mFileManage;
	IDisplayUtils mDisplayUtils;
	ITouchController mTouchController;
	public Device() {
		mDevice = this;
	}

	public static Device getDevice() {
		return mDevice;
	}

	public IGLES20 getGlES20() {
		return mGlES20;
	}

	public void setGlES20(IGLES20 pGlES20) {
		this.mGlES20 = pGlES20;
	}

	public IFileManage getFileManage() {
		return mFileManage;
	}

	public void setFileManage(IFileManage pFileManage) {
		this.mFileManage = pFileManage;
	}
	
	public ISoundFactory getSoundFactory() {
		return mSoundFactory;
	}

	public void setSoundFactory(ISoundFactory pSoundFactory) {
		this.mSoundFactory = pSoundFactory;
	}

	public IMusicFactory getMusicFactory() {
		return mMusicFactory;
	}

	public void setMusicFactory(IMusicFactory pMusicFactory) {
		this.mMusicFactory = pMusicFactory;
	}

	public MusicManager getMusicManager() {
		return mMusicManager;
	}

	public void setMusicManager(MusicManager pMusicManager) {
		this.mMusicManager = pMusicManager;
	}
	
	public ISoundManager getSoundManager() {
		return mSoundManager;
	}

	public void setSoundManager(ISoundManager pSoundManager) {
		this.mSoundManager = pSoundManager;
	}
	

	public IDisplayUtils getDisplayUtils() {
		return mDisplayUtils;
	}

	public void setDisplayUtils(IDisplayUtils pDisplayUtils) {
		this.mDisplayUtils = pDisplayUtils;
	}
	
	public ITouchController getTouchController() {
		return mTouchController;
	}

	public void setTouchController(ITouchController pTouchController) {
		this.mTouchController = pTouchController;
	}
}
